import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const store = new Vuex.Store({
  state: {
    seatInfo: []
  },
  mutations: {
    // 增加座位
    addSeat(state, res) {
      state.seatInfo.push(res)
    },
    // 清空座位
    removeSeat(state) {
      state.seatInfo = []
    },
  }
})
export default store;
